home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore_siege.swf / scripts / DefineSprite_456 / frame_1 / PlaceObject2_418_69 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-08-19  |  529b  |  32 lines

  1. onClipEvent(enterFrame){
  2.    this._x = _root._xmouse;
  3.    this._y = Math.round(_root._ymouse / 20) * 20;
  4.    if(_X < 265)
  5.    {
  6.       _X = 265;
  7.       _visible = false;
  8.    }
  9.    if(_Y > 320)
  10.    {
  11.       _Y = 320;
  12.    }
  13.    else if(_Y < 260)
  14.    {
  15.       _Y = 260;
  16.    }
  17.    if(_root._ymouse > 330 || _root._ymouse < 200)
  18.    {
  19.       _visible = false;
  20.       this._y = -200;
  21.       armed = false;
  22.    }
  23.    else
  24.    {
  25.       armed = true;
  26.       if(_root._xmouse >= 265)
  27.       {
  28.          _visible = true;
  29.       }
  30.    }
  31. }
  32.